<template>
  <div id="app">
    <!-- <keep-alive> -->
    <router-view></router-view>
    <!-- </keep-alive> -->
  </div>
</template>

<script>
import { baseService } from "@/utils/configHttp";
export default {
  name: "App",
  data() {
    return {
      // daodiao: "", // 导调消息弹窗
      daodiaoInterval: null,
    };
  },
  created() {
    this.daodiaoInterval = setInterval(() => {
      baseService
        .get("/getMessage")
        .then((res) => {
          if (res) {
            this.$notify({
              // title: "",
              message: res,
              position: "bottom-right",
              duration: 10000,
            });
          }
        })
        .catch((err) => {
          console.log("导调信息提示：", err);
        });
    }, 1000);
  },
};
</script>

<style>
#app {
  overflow: hidden;
  /* padding-bottom: 30px; */
  min-height: 100%;
  background: #0a1144;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  /* color: #2c3e50; */
  /* margin-top: 60px; */
}
.el-notification {
  /* background-color: rgba(0, 216, 245, 0.9) !important; */
  background-color: #0a1144 !important;
  box-shadow: 0 2px 12px 0 rgba(0, 216, 245, 0.8) !important;
  border-color: rgba(0, 216, 245, 0.35) !important;
}
.el-notification p,
.el-icon-close {
  color: #fff !important;
}
</style>
